package achi.community.irla.beans;

import achi.community.irla.database.DatabaseImpl;
import achi.community.irla.database.ModelBean;
import achi.community.irla.database.TestServlet;
import achi.community.irla.entities.Users;
import java.io.Serializable;
import javax.ejb.EJB;
import javax.faces.bean.CustomScoped;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ActionEvent;

/**
 * <p>The TextFieldsBean class is the backing bean for the Text Entry
 * demonstration. It is used to store the values of the input fields.</p>
 */


@ManagedBean
@RequestScoped
public class TestBean implements Serializable{

    @ManagedProperty(value = "#{testServlet}")
    TestServlet servlet;

    public TestServlet getServlet() {
        return servlet;
    }

    public void setServlet(TestServlet servlet) {
        this.servlet = servlet;
    }

    public String click(){
        System.out.println("clicked()");
        return "testar";
    }
}